				<div class="section">
                <script type="text/javascript">
					function check(){
						if(confirm('Are you sure ?')){
							return true;
						}else{
							return false;
						}
					}
				</script>
					<!--[if !IE]>start title wrapper<![endif]-->
					<div class="title_wrapper">
						<span class="title_wrapper_top"></span>
						<div class="title_wrapper_inner">
							<span class="title_wrapper_middle"></span>
							<div class="title_wrapper_content">
								<h2 class="menu_title">Manage services</h2>
							</div>
						</div>
						<span class="title_wrapper_bottom"></span>
					</div>
					<!--[if !IE]>end title wrapper<![endif]-->
					
					<!--[if !IE]>start section content<![endif]-->
					<div class="section_content">
						<span class="section_content_top"></span>
						<div class="section_content_inner minheight">
                        	<div class="table_tabs_menu">
                            <ul class="table_tabs">
                            	<li><a href="#" name="tab1" class="selected"><span><span>List</span></span></a></li>
								<li><a href="#" name="tab2"><span><span>Search</span></span></a></li>
								<li><a href="<?php echo base_url(); ?>admin/services/add" name=""><span><span>Add new</span></span></a></li>
							</ul>
							</div>
							<!--[if !IE]>start table_wrapper<![endif]-->
							<div class="table_wrapper">
								<div class="table_wrapper_inner" id="tab1">
                            <form action="" method="post" name="sac">
								<table cellpadding="0" cellspacing="0" width="905">
									<tbody><tr>
									  <th width="25">Stt.</th>
									  <th width="345">Service title</th>
									  <th width="97">Price adults</th>
                                      <th width="90">Price child</th>
									  <th width="188">Train name</th>
                                      <th width="84">Status</th>
									  <th width="74">Actions</th>
									</tr>
                               <?php
							   	$stt = 0;
								if(isset($info) && $info != NULL){
									foreach($info as $items){
										$stt++;
										echo "<tr>";	
										echo "<td>$stt</td>";
										echo "<td>".$items['service_title']."</td>";
										echo "<td>".$items['service_adults']."</td>";
										echo "<td>".$items['service_child']."</td>";
										echo "<td>".$items['train_name']."</td>";
										if($items['service_status'] == 1){
											echo "<td>Active</td>";
										}else{
											echo "<td>Not active</td>";
										}
										echo "<td>";
												echo "<div class='actions_menu'><ul>";
													echo "<li><a href='".base_url()."admin/services/update/$items[service_id]/' class='edit'>Edit</a></li>";
													echo "<li><a href='".base_url()."admin/services/del/$items[service_id]/' class='delete' onclick='return check()'>Del</a></li>";
												echo "</ul></div>";
											echo "</td>";

										echo "</tr>";
									}
								}else{
									echo "<tr>";	
									echo "<td colspan='7'>No service</td>";
									echo "</tr>";
								}
									?>
								</tbody></table>
                            </form>
                            	<div id="pagination"><?php  echo $this->pagination->create_links();?></div>
							</div>
                            <div class="table_wrapper_inner" id="tab2">
                            	<div class="form_user" style="height:auto">
                                <script type="text/javascript">
									$(document).ready(function(){
										var $obj 	= $("#selecttrain");
										var $show 	= $("#service_show");
										$obj.change(function(){
											$val = $(this).val();
											if($val == 0){
												alert("Please select a cruise!");
											}else{
												$.ajax({
													"url" 	: "<?php echo base_url(); ?>admin/services/select",
													"type"  : "post",
													"data"  : "val="+$val,
													"async" : false,
													success : function(result){
														$show.html(result);
													}
												});
											}
										});
									});
                                </script>
                            	<form action="javascript:void(0)">
                                	<div class="form_items">
                                    	<div class="form_item_left">Select a train</div>
                                        <div class="form_item_right">
                                          	<select name="" id="selecttrain">
                                            <option value="0">Select</option>
                                            <?php
											foreach($listtrain as $items){
												echo "<option value='".$items['train_id']."'>".$items['train_name']."</option>";
											}
											?>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form_items">
                                    	<!--div class="form_item_left">&nbsp;</div>
                                        <div class="form_item_right"><input type="submit" id="ok" value="Tìm kiếm" class="padding" /></div-->
                                    </div>
                                </form>
                                </div>
                                <div id="service_show" style="padding:10px 0px 0px 10px;"></div>
                            </div>
						</div>
							<!--[if !IE]>end table_wrapper<![endif]-->
						</div>
						<!--[if !IE]>start pagination<![endif]-->
							<div class="pagination_wrapper">
							<span class="pagination_top"></span>
							<div class="pagination_middle">
							<div class="pagination">
								<!--<ul class="pag_list">
                                	<?php  //echo $this->pagination->create_links();?>
                                	
									<li><a href="#" class="pag_nav"><span><span>Previous</span></span></a> </li>
									<li><a href="#">1</a></li>
									<li><a href="#" class="current_page"><span><span>2</span></span></a></li>
									<li><a href="#">3</a></li>
									<li><a href="#">4</a></li>
									<li><a href="#">5</a></li>
									<li>[...]</li>
									<li><a href="#">217</a></li>
									<li><a href="#" class="pag_nav"><span><span>Next</span></span></a> </li>
								</ul>-->
							</div>
							</div>
							<span class="pagination_bottom"></span>
							</div>
						<!--[if !IE]>end pagination<![endif]-->
						<span class="section_content_bottom"></span>
					</div>
					<!--[if !IE]>end section content<![endif]-->
				</div>